#pragma once
#include "globject.h"
class MayaObject :
	public GLObject
{
public:
	MayaObject(void);
	~MayaObject(void);
	virtual void draw(glm::mat4 global_transform);
	void addVector( glm::vec4 v);
	void addNormVect( glm::vec3 norm);

	//add the vertex specifications for a face
	void addFace( std::vector<GLint> face);

	//add the normal specifications for a face
	void addNormIndex( std::vector<GLint> norm);
	void printInfo();

	//Make sure you call this after reading in all the data
	void calculateFaceNorms();
private:
	std::vector<glm::vec4> vertices; //specified by "v" commands
	std::vector<glm::vec3> vertNorms; //specified by "vn" commands
	std::vector<std::vector<GLint>> faces; //specified by "f X/X/X" commands (corresponds to the X's)
	std::vector<std::vector<GLint>> norms; //specified by "f X//Y X//Y X//Y" commands (corresponds to the Y's)
	std::vector<glm::vec3> faceNorms; //use only when vertNorms ("vn") is not specified
};

